﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AccountsDomain
{
   public class AccountsEntry
    {
        #region Properties
        public Guid ID { get; set; }
        public AccountsPostingType EntryType { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public Guid AccountID { get; set; }
        public Guid AmountID { get; set; }        
        #endregion

        #region ForeignKeyProperties
        public Guid AccountsTransactionID { get; set; } 
        #endregion

        #region NavigationalProperties
       [ForeignKey("AccountID")]
        public virtual Account Account { get; set; }
          [ForeignKey("AmountID")]
        public virtual Money Amount { get; set; }
             [ForeignKey("AccountsTransactionID")]
          public virtual AccountsTransaction Transaction { get; set; }
        #endregion
         

    }
}
